package com.bdqn.service.utils;

/**
 * @author ya
 */
public interface SecurityConstant {

    /**
     * token分割
     */
    String TOKEN_SPLIT = "Bearer ";

    /**
     * JWT签名加密key
     */
    String JWT_SIGN_KEY = "basesystem";

    /**
     * token参数头
     */
    String ACCESS_TONKEN_BACKEND = "accessToken";

    /**
     * 小程序token参数头
     */
    String ACCESS_TONKEN_WXAPP = "wxappToken";

    /**
     * APPtoken参数头
     */
    String ACCESS_TONKEN_APP = "appToken";

    /**
     * H5token参数头
     */
    String ACCESS_TONKEN_H5 = "h5Token";

    /**
     * appid参数头
     */
    String APPID_H5 = "appid";

    /**
     * appid参数头
     */
    String H5_TITLE = "h5Title";

    /**
     * 权限参数头
     */
    String AUTHORITIES = "authorities";

    /**
     * 用户选择JWT保存时间参数头
     */
    String SAVE_LOGIN = "saveLogin";

    /**
     * 后台登录验证
     */
    String AUTH_TYPE_BACKEND = "backend";

    /**
     * 小程序登录验证
     */
    String AUTH_TYPE_WXAPP = "wxapp";

    /**
     * APP登录验证
     */
    String AUTH_TYPE_APP = "app";

    /**
     * h5端登录验证
     */
    String AUTH_TYPE_H5 = "h5app";

    /**
     * 账户前缀
     */
    String ACCOUNT_STAFF_SPLIT = "STAFF_";

    /**
     * 账户前缀
     */
    String ACCOUNT_MEMBER_SPLIT = "MEMBER_";


    /**
     * openid账户前缀
     */
    String ACCOUNT_OPENID_SPLIT = "openid_";

    /**
     * userid账户前缀
     */
    String ACCOUNT_USERID_SPLIT = "cpuserid_";
}
